const joinOriginAndPath = (path: string, origin = '') => `${origin}${path.startsWith('/') ? path : '/' + path}`

export const commonUrl = (path: string) => joinOriginAndPath(path, import.meta.env.VITE_API_COMMON)
